|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectj3deditor.bin.hierarchy.HierarchyNode
j3deditor.bin.hierarchy.J3DeTexture
public class J3DeTexture
Contains and manages an instance of
javax.media.j3d.Texture.
Texture| Field Summary | |
|---|---|
static int |
TEXTURE_2D
Specifies that this is 2D texture. |
static int |
TEXTURE_3D
Specifies that this is 3D texture. |
| Constructor Summary | |
|---|---|
J3DeTexture(javax.media.j3d.Appearance appearance)
Creates an instance of J3DeTexture
with the Texture object from the
given Appearance object. |
|
| Method Summary | |
|---|---|
static javax.media.j3d.Texture |
createTexture(int type,
java.awt.Image[] images,
int mipMapMode,
int format)
Creates new texture using the specified properties. |
void |
delete()
Removes this texture from the Appearance object. |
float |
getAnisotropicFilterDegree()
Returns the anisotropic filter degree of this texture. |
int |
getAnisotropicFilterMode()
Returns the anisotropic filter mode of this texture. |
static java.lang.String[] |
getAnisotropicFilterModes()
Returns the list of the anisotropic filter mode names. |
int |
getBaseLevel()
Returns the base level of this texture. |
java.awt.Color |
getBoundaryColor()
Returns the boundary color of this texture. |
static java.lang.String[] |
getBoundaryModes()
Returns the list of boundary mode names. |
int |
getBoundaryModeS()
Returns the boundary mode for the S coordinate. |
int |
getBoundaryModeT()
Returns the boundary mode for the T coordinate. |
int |
getBoundaryWidth()
Returns the boundary width of this texture. |
float[] |
getFilter4Func()
Returns the filter 4 function of this texture. |
int |
getFormat()
Returns the format of this texture. |
static java.lang.String[] |
getFormats()
Returns the list of texture format names. |
java.awt.Image |
getImage(int level)
Returns an image from the specified level. |
J3DeImageComponent |
getImageComponent(int index)
Returns an ImageComponent from the specified index. |
float[] |
getLodOffset()
Returns the lod offset of this texture. |
int |
getMagFilter()
Returns the type of magnification filter. |
static java.lang.String[] |
getMagFilters()
Returns the list of magnification filter names. |
int |
getMaximumLevel()
Returns the maximum level of this texture. |
float |
getMaximumLOD()
Returns the maximum lod of this texture. |
int |
getMinFilter()
Returns the minification filter of this texture. |
static java.lang.String[] |
getMinFilters()
Returns the list of the minification filters. |
float |
getMinimumLOD()
Returns the minimum lod of this texture. |
int |
getMipMapMode()
Returns the mipmap mode of this texture. |
static java.lang.String[] |
getMipMapModes()
Returns the list of mipmap mode names. |
float[][] |
getSharpenTextureFunc()
Returns the sharpen texture function of this texture. |
J3DePoint2D |
getSize()
Returns the size of this texture. |
javax.media.j3d.Texture |
getTexture()
Returns the Texture contained in this J3DeTexture. |
int |
numberOfImageComponents()
Returns the number of ImageComponent objects this texture contains. |
int |
numMipMapLevels()
Returns the number of mipmap levels. |
void |
setAnisotropicFilterDegree(float degree)
Sets the anisotropic filter degree of this texture. |
void |
setAnisotropicFilterMode(int mode)
Sets the anisotropic filter mode of this texture. |
void |
setBaseLevel(int level)
Sets the base level of this texture. |
void |
setBoundaryColor(java.awt.Color color)
Sets the boundary color of this texture. |
void |
setBoundaryModeS(int mode)
Sets the boundary mode for the S coordinate. |
void |
setBoundaryModeT(int mode)
Sets the boundary mode for the T coordinate. |
void |
setFilter4Func(float[] weights)
Sets the filter 4 function of this texture. |
void |
setLodOffset(float s,
float t,
float r)
Sets the lod offset of this texture. |
void |
setMagFilter(int filter)
Sets the magnification filter of this texture. |
void |
setMaximumLevel(int level)
Sets the maximum level of this texture. |
void |
setMaximumLOD(float lod)
Sets the maximum lod of this texture. |
void |
setMinFilter(int filter)
Sets the minification filter of this texture. |
void |
setMinimumLOD(float lod)
Sets the minimum lod of this texture. |
void |
setMipMapMode(int mode)
Sets the mipmap mode of this texture. |
void |
setSharpenTextureFunc(float[] lod,
float[] pts)
Sets the sharpen texture function of this texture. |
void |
setTexture(javax.media.j3d.Texture texture)
Sets the Texture of this J3DeTexture. |
| Methods inherited from class j3deditor.bin.hierarchy.HierarchyNode |
|---|
clone, equals, getChild, getIndex, getIndexOfChild, getNumberOfChildren, getParent, getParent, getType, hasNamedChild, removeChild, setName, setParent, toString, updateName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TEXTURE_2D
public static final int TEXTURE_3D
| Constructor Detail |
|---|
public J3DeTexture(javax.media.j3d.Appearance appearance)
J3DeTexture
with the Texture object from the
given Appearance object.
appearance - an instance of Appearance which
texture component is not null| Method Detail |
|---|
public void setTexture(javax.media.j3d.Texture texture)
texture - new Texturepublic int numberOfImageComponents()
public J3DeImageComponent getImageComponent(int index)
index - the index of ImageComponent
public javax.media.j3d.Texture getTexture()
public java.awt.Image getImage(int level)
level - the index of ImageComponent which image will be returned
public float getAnisotropicFilterDegree()
Texture.getAnisotropicFilterDegree()public void setAnisotropicFilterDegree(float degree)
degree - anisotropic filter degreeTexture.setAnisotropicFilterDegree(float degree)public int getAnisotropicFilterMode()
Texture.getAnisotropicFilterMode()public static java.lang.String[] getAnisotropicFilterModes()
public void setAnisotropicFilterMode(int mode)
mode - anisotropic filter mode.Texture.setAnisotropicFilterMode(int mode)public int getBaseLevel()
Texture.getBaseLevel()public void setBaseLevel(int level)
level - base levelTexture.setBaseLevel(int baseLevel)public java.awt.Color getBoundaryColor()
Texture.getBoundaryColor(Color4f boundaryColor)public void setBoundaryColor(java.awt.Color color)
color - new boundary colorTexture.setBoundaryColor(Color4f boundaryColor)public int getBoundaryModeS()
Texture.getBoundaryModeS()public int getBoundaryModeT()
Texture.getBoundaryModeT()public static java.lang.String[] getBoundaryModes()
public void setBoundaryModeS(int mode)
mode - valid values are 0, 1, 2 and 3,
see getBoundaryModes().Texture.setBoundaryModeS(int boundaryModeS)public void setBoundaryModeT(int mode)
mode - valid values are 0, 1, 2 and 3,
see getBoundaryModes().Texture.setBoundaryModeT(int boundaryModeT)public int getBoundaryWidth()
Texture.getBoundaryWidth()public float[] getFilter4Func()
Texture.getFilter4Func(float[] weights)public void setFilter4Func(float[] weights)
weights - see javax.media.j3d.Texture#setFilter4Func(float[] weights)Texture.setFilter4Func(float[] weights)public int getFormat()
Texture.getFormat()public static java.lang.String[] getFormats()
public float[] getLodOffset()
Texture.getLodOffset(Tuple3f offset)
public void setLodOffset(float s,
float t,
float r)
s - see javax.media.j3d.Texture#setLodOffset(Tuple3f offset)t - see javax.media.j3d.Texture#setLodOffset(Tuple3f offset)r - see javax.media.j3d.Texture#setLodOffset(Tuple3f offset)Texture.setLodOffset(Tuple3f offset)public int getMagFilter()
Texture.getMagFilter()public static java.lang.String[] getMagFilters()
public void setMagFilter(int filter)
filter - valid values are 0, 1, 2, 3, 4, 5, 6 and 7,
see getMagFilters()Texture.setMagFilter(int magFilter)public int getMaximumLevel()
Texture.getMaximumLevel()public void setMaximumLevel(int level)
level - maximum level of textureTexture.setMaximumLevel(int maximumLevel)public float getMaximumLOD()
Texture.getMaximumLOD()public void setMaximumLOD(float lod)
lod - maximum lodTexture.setMaximumLOD(float maximumLod)public int getMinFilter()
Texture.getMinFilter()public static java.lang.String[] getMinFilters()
public void setMinFilter(int filter)
filter - valid values are 0, 1, 2, 3, 4, 5 and 6,
see getMinFilters()Texture.setMinFilter(int minFilter)public float getMinimumLOD()
Texture.getMinimumLOD()public void setMinimumLOD(float lod)
lod - see javax.media.j3d.Texture#setMinimumLOD(float minimumLod)Texture.setMinimumLOD(float minimumLod)public int getMipMapMode()
Texture.getMipMapMode()public static java.lang.String[] getMipMapModes()
public void setMipMapMode(int mode)
mode - valid values are 0 and 1,
see getMipMapModes()Texture.setMipMapMode(int mipMapMode)public float[][] getSharpenTextureFunc()
Texture.getSharpenTextureFunc(float[] lod, float[] pts)
public void setSharpenTextureFunc(float[] lod,
float[] pts)
lod - see javax.media.j3d.Texture#setSharpenTextureFunc(float[] lod, float[] pts)pts - see javax.media.j3d.Texture#setSharpenTextureFunc(float[] lod, float[] pts)Texture.setSharpenTextureFunc(float[] lod, float[] pts)public int numMipMapLevels()
Texture.numMipMapLevels()public J3DePoint2D getSize()
Texture.getWidth(),
Texture.getHeight()
public static javax.media.j3d.Texture createTexture(int type,
java.awt.Image[] images,
int mipMapMode,
int format)
type - either TEXTURE_2D or TEXTURE_3Dimages - texture images (in 2D texture only first image is used)mipMapMode - either Texture.BASE_LEVEL or Texture.MULTI_LEVEL_MIPMAPformat - 0 - INTENSITYLUMINANCEALPHALUMINACE_ALPHARGBRGBA
public void delete()
Appearance object.
delete in interface Deletable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||